package com.lwz.common.view

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.Button
import android.widget.Toast
import androidx.constraintlayout.widget.ConstraintLayout
import com.lwz.common.R

/**
 * @Description: 类作用描述
 * @Author: chad
 * @CreateDate: 2025/5/9 9:45
 * @Version: 1.0
 */
class TitleLayout(context: Context,attrs:AttributeSet):ConstraintLayout(context,attrs) {
    init {
        LayoutInflater.from(context).inflate(R.layout.title,this)
        findViewById<Button>(R.id.btn_back).setOnClickListener {
            Toast.makeText(context,"点击了返回",Toast.LENGTH_SHORT).show()
        }

    }


}